/**
 * @file setting_search_switch.h
 *
 */
#ifndef SETTING_SEARCH_SWITCH_H
#define SETTING_SEARCH_SWITCH_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/
#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lvgl.h"
#include "lv_watch_conf.h"
#else
#include "../../../lvgl/lvgl.h"
#include "../../../lv_watch_conf.h"
#endif

#if USE_LV_WATCH_SEARCH_SWTICH != 0

/*********************
 *      DEFINES
 *********************/
enum {
    SEARCH_SWITCH_OFF = 0,
    SEARCH_SWITCH_ON,
};

/**********************
 *      TYPEDEFS
 **********************/
typedef struct {
    lv_watch_obj_ext_t lv_watch_obj;
    /*New data for this type */
    lv_obj_t * cb_on;
    lv_obj_t * cb_off;
} lv_searchswitch_obj_ext_t;

/**********************
 * GLOBAL PROTOTYPES
 **********************/
void search_switch_create_btn_action(lv_obj_t * btn, lv_event_t event);
void search_switch_init(uint8_t search_switch);

/**********************
 *      MACROS
 **********************/

#endif /*USE_LV_WATCH_SEARCH_SWTICH*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*SETTING_SEARCH_SWITCH_H*/
